const USER_KEY = "user_key";
import VueCookies from "vue-cookies";
export const User = {
  getUserInfo() {
    let user = VueCookies.get(USER_KEY);
    if (user) {
      return user;
    } else {
      return "";
    }
  },
  setUserInfo(userInfo) {
    VueCookies.set(USER_KEY, JSON.stringify(userInfo));
  },
};
